-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Golf down hooks impl #4897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Golf down hooks impl #4897
Conversation
| } | ||
|
|
||
| return hookState._nextValue || hookState._value; | ||
| return hookState._value; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're already converting _nextValue to _value in the _render hook
📊 Tachometer Benchmark ResultsSummaryduration
usedJSHeapSize
Resultscreate10kduration
usedJSHeapSize
filter-listduration
usedJSHeapSize
hydrate1kduration
usedJSHeapSize
many-updatesduration
usedJSHeapSize
replace1kduration
usedJSHeapSize
run-warmup-0
run-warmup-1
run-warmup-2
run-warmup-3
run-warmup-4
run-final
text-updateduration
usedJSHeapSize
tododuration
usedJSHeapSize
update10th1kduration
usedJSHeapSize
|
| if (allHooksEmpty) { | ||
| return prevScu ? prevScu.call(this, p, s, c) : true; | ||
| } | ||
| const hooksList = hookState._component.__hooks._list; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than doing excessive checks we just merge these paths
|
Size Change: -73 B (-0.15%) Total Size: 47.3 kB
ℹ️ View Unchanged
|
rschristian
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice diff!
No description provided.